<div class="bigtitle">Danh mục tình trạng pháp lý &gt; Thêm mới</div>
<table class='tblcontent' cellspacing='0' cellpadding='0' border='0'>
	<tr>
		<td>
			<?=form_open(site_url('list_legalstatus/addnew'),array('name'=>'frm','onsubmit'=>'return f_validate()'),array('hidden_status'=>''))?>			
			<table class='tblinputform' cellspacing='1' cellpadding='2' border='0' width='50%'>
				<tr>
					<th width='20%'>Tên tình trạng pháp lý</th>
					<td width='80%'><input type='text' name='txt_categoryname' style='width:300px;' maxlength='200' value=''/></td>
				</tr>
			</table>
			<div class='ctrlbtn'>
				<input type='button' name='btn_save' value='<?=lang('label_save')?>' onclick='return f_validate()'/>	
				<input type='button' name='btn_cancel' value='<?=lang('label_cancel')?>' onclick='window.location="<?=site_url('list_legalstatus')?>";'/>
			</div>
			<?=form_close()?>
		</td>
	</tr>
</table>
<script type='text/javascript'>
	f_onload();
	function f_onload(){ document.frm.txt_categoryname.focus();}
	function f_validate(){
		form = document.frm;
		if(form.txt_categoryname.value==''){
			alert("<?=lang('newscategory_js_inputcategoryname')?>");
			form.txt_categoryname.focus();
			return false;
		}
		form.submit();
	}
</script>